using System.Web.UI;
using System.Web.UI.WebControls;

namespace OpenWaves.ActivityFeed.Web.Controls
{
    public class UpdateContentPlaceHolder : WebControl
    {
        public override void RenderControl(HtmlTextWriter writer)
        {
            //base.RenderControl(writer);
            writer.Write(@"<!-- ko if:$root.contentTemplateExists($data) -->
<!-- ko template: $root.getUpdateContentTemplate($data) --><!-- /ko -->
<!-- /ko -->
               <!-- ko ifnot:$root.contentTemplateExists($data) -->
                    <span class='noTemplate' data-bind=""text: 'Template ' + contentType() + ' not found.'""></span>
               <!-- /ko -->");
        }
    }
}